Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new fetch methods for V3 local DB #430

Merged
merged 13 commits into from
Jun 25, 2024
Merged

Conversation

nplasterer
Copy link
Contributor

@nplasterer nplasterer commented Jun 24, 2024

  • adds ability to fetch message by id
  • adds ability to fetch group by id
  • adds ability to fetch inboxId by address
  • adds ability to pass historySyncURL in on create
  • adds ability to requestMessageHistorySync

Closes #426
Closes #422
Fixes #427

Android iOS
Screenshot 2024-06-24 at 6 45 29 PM Screenshot 2024-06-24 at 6 53 22 PM

@nplasterer nplasterer self-assigned this Jun 24, 2024
@nplasterer nplasterer marked this pull request as ready for review June 25, 2024 01:53
@nplasterer nplasterer requested a review from a team as a code owner June 25, 2024 01:53
a.apply { set(i, v.toByte()) }
}
AsyncFunction("auth") {
{ address: String, environment: String, appVersion: String?, hasCreateIdentityCallback: Boolean?, hasEnableIdentityCallback: Boolean?, enableV3: Boolean?, dbEncryptionKey: List<Int>?, dbDirectory: String?, historySyncUrl: String? ->
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

8 was apparently the maximum amount of variables that could be passed into the AsyncFunction. The addition of historySyncUrl broke this. So I had to add an extra closure. I need to triple confirm that this doesn't break login for wallets before merging.

@cameronvoell cameronvoell self-requested a review June 25, 2024 14:11
Copy link
Contributor

@cameronvoell cameronvoell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wallet auth working for me on android now 👍

@nplasterer nplasterer merged commit 018a965 into beta Jun 25, 2024
5 of 6 checks passed
@nplasterer nplasterer deleted the np/database-fetch-enhancements branch June 25, 2024 16:14
Copy link
Contributor

🎉 This PR is included in version 1.34.0-beta.16 🎉

The release is available on:

Your semantic-release bot 📦🚀

Copy link
Contributor

🎉 This PR is included in version 2.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants